package com.lambda;

public class StaticMethodUse {
    public static <T> String hello(T s) {
        return s.toString();
    }
    public static <T> String ret() {
        return "hello";
    }
    public static void getSize(String s) {
        System.out.println(s.length());
    }
    public  static Integer toUpCase(String s){
        return s.hashCode();
    }

    public static int addResult(int a,int b){
        int num = a > b ? a : b;
        System.out.println("In method:"+num);
        return num;
    }

    public static int addResult2(int a,int b){
        int num = a > b ? a : b;
        System.out.println("In method:"+num);
        return num;
    }

    public static String printStr(String str){
        System.out.println(str.toUpperCase());
        return str;
    }

    public static int dividResult(int a,int b){
        return a/b+3;
    }

    public int minuls(int a,int b){
        return a*b;
    }

    public int methodRef(){
        return 8;
    }
}

class Fun {
    public static String put() {
        return "hello";
    }
    public static String toUpCase(String s){
        return s.toUpperCase();
    }
}
